// my-app/src/app/courses/[id]/page.js
'use client';
import React from 'react';
// import { useRouter } from 'next/router';
import { useRouter } from 'next/navigation';
import AllBlogDetail from '../../../components/biogComponent/AllBlogDetail';

const BlogDetailPage = ({params}) => {
  const router = useRouter();
  const { blog_id } = params;

  if (!blog_id) return <p>Loading...</p>;

  return <AllBlogDetail blogId={blog_id} />;
};

export default BlogDetailPage;
